package models

// Vipgift undefined
type Vipgift struct {
	ID       int64   `json:"id" gorm:"id"`
	Dengji   int64   `json:"dengji" gorm:"dengji"`     // 等级
	Classify int64   `json:"classify" gorm:"classify"` // 1商品 2赏卷
	Price    float64 `json:"price" gorm:"price"`       // 消费满多少领取 0注册就领取
	Image    string  `json:"image" gorm:"image"`
	Name     string  `json:"name" gorm:"name"`
	Otherid  int64   `json:"otherid" gorm:"otherid"`
	Lingqu   int64   `json:"lingqu" gorm:"lingqu"` // 1未领取 2已领取
	Uid      int64   `json:"uid" gorm:"uid"`
	Goodname string  `json:"goodname" gorm:"goodname"`
}
type Vipgiftsql struct {
	ID     int64   `json:"id" gorm:"id"`
	Dengji int64   `json:"dengji" gorm:"dengji"` // 等级
	Price  float64 `json:"price" gorm:"price"`   // 消费满多少领取 0注册就领取
}

// TableName 表名称
func (*Vipgift) TableName() string {
	return "vipgift"
}

// Uservipgift undefined
type Uservipgift struct {
	ID       int64   `json:"id" gorm:"id"`
	Dengji   int64   `json:"dengji" gorm:"dengji"`     // 等级
	Classify int64   `json:"classify" gorm:"classify"` // 1商品 2赏卷
	Price    float64 `json:"price" gorm:"price"`       // 消费满多少领取 0注册就领取
	Image    string  `json:"image" gorm:"image"`
	Name     string  `json:"name" gorm:"name"`
	Otherid  int64   `json:"otherid" gorm:"otherid"`
	Lingqu   int64   `json:"lingqu" gorm:"lingqu"` // 1未领取 2已领取
	Uid      int64   `json:"uid" gorm:"uid"`
	Goodname string  `json:"goodname" gorm:"goodname"`
}

// TableName 表名称
func (*Uservipgift) TableName() string {
	return "uservipgift"
}
